HTML & HTML5 For Dummies: The Simplified Beginner's Guide To Learn HTML (HTML, HTML5, HTML and CSS) by Karnan son

HTML & HTML5 For Dummies: The Simplified Beginner's Guide To Learn HTML (HTML, HTML5, HTML and CSS) by Karnan son

Author:Karnan son
Language: eng
Format: mobi
Published: 2018-06-18T23:00:00+00:00


Test it Now

Here you see that we are using two elements, the head tag and the title tag. The whole title element is within the head tag.

The head element which appears before body element just contains the information about the page but it doesn't display on the browser window. So, to display a title name on the web page, title element is used.

If you look at the above example, you will see that "First web page" will be displayed on the tab/ title bar of the browser. Content(text) between <title>.............</title> is shown on the title bar.

Doctype HTML

On the HTML document you have often seen that there is a <!DOCTYPE html> declaration before the <html> tag. This <!DOCTYPE html> declaration is not an HTML tag. It is used to instruct the web browser about the HTML page.

Actually, there are many type of HTML e.g. HTML 4.01 Strict, HTML 4.01 Transitional, HTML 4.01 Frameset, XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, XHTML 1.1 etc.

The <!DOCTYPE> declaration refers Document Type Declaration (DTD) in HTML 4.01; because HTML 4.01 was based on SGML. But HTML 5 is not SGML based language.

DTD defines the rules for the markup languages so that the browsers recognize the content correctly.

The doctype declaration differs between HTML versions. The HTML 5 doctype declaration is given below.

<!DOCTYPE html>

Let's see an example of HTML document with doctype declaration.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.